package eddy.yang.client;

import java.util.Enumeration;
import java.util.Vector;
import javax.swing.JTextArea;

public class ProcessArea extends JTextArea{
	/**
	 * 
	 */
	private static final long serialVersionUID = -876406733301915772L;

	public ProcessArea(int n) {
		super("", n, 10);
		setEditable(false);
	}
	
	public void changed(Vector<Integer> v) {
		setText("");
		Enumeration<Integer> e = v.elements();
		while(e.hasMoreElements()) {
			Integer i = e.nextElement();
			this.append(i.toString() + "\n");
		}
	}
}
